package io.renren.modules.app.controller.wechat;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.renren.common.utils.R;
import io.renren.modules.app.entity.CarouselEntity;
import io.renren.modules.app.service.CarouselService;




/**
 * 轮播广告
 * 
 * @author chaolemen
 * @email 2698481037@qq.com
 * @date 2018-01-06 23:38:06
 */
@RestController
@RequestMapping("/wechat/carousel")
public class WechatCarouselController {
	@Autowired
	private CarouselService carouselService;
	
	/**
	 * 列表
	 */
	@RequestMapping("/list")
	public R list(){
		
		List<CarouselEntity> carouselList = carouselService.queryEffectiveList();
		return R.ok().put("carouselList", carouselList);
	}
	
}
